home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
tex
/
td187src.lzh
/
MAGICSTR.D
< prev
next >
Wrap
Text File
|
1991-06-09
|
2KB
|
43 lines
(*#######################################################################
M A G I C S T R I N G S
#######################################################################
V1.0 18.10.90 Peter Hellinger
#######################################################################*)
DEFINITION MODULE MagicStrings;
FROM MagicSys IMPORT Nil, Null,
Bit0, Bit1, Bit2, Bit3, Bit4, Bit5, Bit6, Bit7,
Bit8, Bit9, Bit10, Bit11, Bit12, Bit13, Bit14, Bit15,
LOC, Byte, ByteSet, sWORD, sINTEGER, sCARDINAL, sBITSET,
lWORD, lINTEGER, lCARDINAL, lBITSET;
TYPE STRING = ARRAY [0..255] OF CHAR;
Relation = (less, equal, greater);
PROCEDURE Length (REF str: ARRAY OF CHAR): sCARDINAL;
PROCEDURE Pos (substr, str: ARRAY OF CHAR): sCARDINAL;
PROCEDURE Insert (substr: ARRAY OF CHAR; VAR str: ARRAY OF CHAR; index: sCARDINAL);
PROCEDURE Delete (VAR str: ARRAY OF CHAR; index, len: sCARDINAL);
PROCEDURE Append (substr: ARRAY OF CHAR; VAR str: ARRAY OF CHAR);
PROCEDURE Copy (REF str: ARRAY OF CHAR; index, len: sCARDINAL;
VAR result: ARRAY OF CHAR);
PROCEDURE CAPS (VAR str: ARRAY OF CHAR);
PROCEDURE Equal (s1, s2: ARRAY OF CHAR): BOOLEAN;
PROCEDURE Compare (s1, s2: ARRAY OF CHAR): Relation;
PROCEDURE Assign (quelle: ARRAY OF CHAR; VAR ziel: ARRAY OF CHAR);
PROCEDURE Cap (ch: CHAR): CHAR;
(* Wandelt auch deutsche Umlaute *)
END MagicStrings.